import Service from '@pisiw/model'

export async function userLogin(req: any, res: any) {
    const params = req.body
    const result = await Service.users.userLogin(params)
    res.send(result)
}

export async function userRegister(req: any, res: any) {
    const params = req.body;
    const result = await Service.users.userRegister(params)
    res.send(result)
}